package com.stox.ui.javafx.navigator.widget;

import java.util.List;

import javafx.scene.control.ContextMenu;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.stox.dto.AbstractModel;
import com.stox.dto.intf.AbstractModelNavigable;
import com.stox.ui.javafx.navigator.view.tab.EquityNavigatorTab;

@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class EquityContextMenu extends ContextMenu implements AbstractModelNavigable<List<AbstractModel>>{
	private static final long serialVersionUID = 1L;
	
	private EquityNavigatorTab equityNavigatorTab;
	
	public EquityNavigatorTab getEquityNavigatorTab() {
		return equityNavigatorTab;
	}
	
	public void setEquityNavigatorTab(EquityNavigatorTab equityNavigatorTab) {
		this.equityNavigatorTab = equityNavigatorTab;
	}

	@Override
	public AbstractModel next(boolean forward) {
		return equityNavigatorTab.next(forward);
	}

	@Override
	public List<AbstractModel> get() {
		return equityNavigatorTab.get();
	}
}
